import Cookies from "js-cookie";

export function IsLogin() {
  // 通过cookie来判断用户是否登录
  const username = Cookies.get("username");
  return username !== undefined && username !== "";
}
